package com.hoshiibuy.customerOperation.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 平台商品评价
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Reviews对象", description = "平台商品评价")
public class Reviews extends Model<Reviews> {

	private static final long serialVersionUID = 1L;

	private Long id;

	@ApiModelProperty(value = "平台id")
	private Long platformId;

	@ApiModelProperty(value = "平台用户ID")
	private Long userId;

	@ApiModelProperty(value = "订单ID")
	private Long orderid;

	@ApiModelProperty(value = "平台SPUID")
	private Long platformSpuId;

	@ApiModelProperty(value = "平台SKUID")
	private Long platformSkuId;

	@ApiModelProperty(value = "商品评分 1-5个星")
	private Integer stars;

	@ApiModelProperty(value = "评论内容")
	private String contexts;

	@ApiModelProperty(value = "是否匿名评价")
	private Integer isAnonymous;

	@ApiModelProperty(value = "是否已经屏蔽或删除")
	private Integer deleted;

	@ApiModelProperty(value = "评价时间")
	private LocalDateTime createdtime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
